#!/bin/sh

setxkbmap -layout 'ru, us' -option 'grp:shift_alt_toggle'

firefox -install-global-extension /home/root/full_fullscreen-3.4-fx.xpi

PREFS=`find /home/root/.mozilla -name "prefs.js"`
if [ -e "$PREFS" ]; then
    grep -q "fullfullscreen" "$PREFS" || cat >> "$PREFS" << EOF
user_pref("fullfullscreen.start", true);
user_pref("fullfullscreen.notabs", true);
EOF
fi

openbox &

while true ; do
    firefox http://localhost
done
